#ifndef AUTOSPLITTERHANDLE_H
#define AUTOSPLITTERHANDLE_H

#include <QtGui/QSplitterHandle>
#include <QtGui/QSplitter>
#include "Portability.h"

class AutoSplitterHandle : public QSplitterHandle
{
	Q_OBJECT

public:
	AutoSplitterHandle(Qt::Orientation orientation,QSplitter *parent);
	virtual ~AutoSplitterHandle(void);

protected:
	virtual void mouseReleaseEvent( QMouseEvent * event ) override;

private:
	const int _defaultHandleWidth;

	void setBackgroud(QColor);
	void resizeHandleWidth();
	friend class AutoSplitter;
	
};

#endif // AUTOSPLITTERHANDLE_H
